package com.partvoyage.client.mvp2.event;

import java.util.Date;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.partvoyage.shared.InfoPointBean;

public class LoadDataInformationGeneralEvent
		extends
		GwtEvent<LoadDataInformationGeneralEvent.LoadDataInformationGeneralEventHandler> {

	public enum TYPE_INFORMATION_GENERAL {
		TYPE_ALL, TYPE_COUT, TYPE_QUAND, TYPE_NETTOYAGE,TYPE_NETTOYAGE_INFO_POINT
	}

	private InfoPointBean infoPointBean;

	public static Type<LoadDataInformationGeneralEventHandler> TYPE = new Type<LoadDataInformationGeneralEventHandler>();

	public interface LoadDataInformationGeneralEventHandler extends
			EventHandler {
		void onLoadDataInformationGeneral(LoadDataInformationGeneralEvent event);
	}

	private TYPE_INFORMATION_GENERAL typeInformation;

	public LoadDataInformationGeneralEvent(
			TYPE_INFORMATION_GENERAL typeInformation) {
		this.typeInformation = typeInformation;
	}

	public LoadDataInformationGeneralEvent(
			TYPE_INFORMATION_GENERAL typeInformation,
			InfoPointBean infoPointBean) {
		this.typeInformation = typeInformation;
		this.infoPointBean = infoPointBean;
	}

	public TYPE_INFORMATION_GENERAL getType() {
		return typeInformation;
	}

	public InfoPointBean getInfoPointBean() {
		return infoPointBean;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<LoadDataInformationGeneralEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(LoadDataInformationGeneralEventHandler handler) {
		handler.onLoadDataInformationGeneral(this);

	}
}
